<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.AgreementsExpenseOverview"
    CodeFile="AgreementsExpenseOverview.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ExpenseOverview</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="agreementsExpenseOverviewForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table class="Header" width="100%" style="background-color:#ffffff">
                        <tr>
                            <td>
                                <cc1:Header ID="insightHeader" runat="server" OnNavigate="OnHeaderNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="true"
                                    OnNavigate="OnSubNavNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:AgreementDetailsSubNavigation ID="agreementDetailsSubNavigation" runat="server"
                                    OnNavigate="OnSubNavNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnBreadCrumbNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:ProjectHeaderBar ID="projectHeaderBar" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table class="SearchContainer" cellspacing="10">
                        <tr>
                            <td>
                                <table class="SearchInDiv">
                                    <tr>
                                        <td>
                                            <cc1:CommonSearch ID="commonSearch" runat="server" EmbeddedExtendedSearchControl="PHSRAG.Insight21.InsightWebControls/OverviewSearch"
                                                EmbeddedExtendedSearchControlProperties="BudgetStartEndFilterVisible=false,BudgetEndingFilterVisible=false,IncludeUserOrdersFilterVisible=false,ExpenseDateFilterVisible=true"
                                                HideAllCommonControls="true" Module="Agreements" OnClearSelection="OnClearSelection"
                                                OnSearch="OnSearch" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                <asp:Label runat="server" ID="pageName"></asp:Label></td>
                            <td align="center">
                                <cc1:RefreshDates ID="refreshDates" runat="server" Visible="True" />
                            </td>
                            <td align="right">
                                <cc1:InsightDownloadBar ID="reportDownload" runat="server" OnFailedAction="OnDownloadFailed"
                                    OnSendByEmail="OnSendByEmail" useRootHost="true" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0">
                        <tr>
                            <td>
                                <cc2:Pager ID="pager" runat="server" RecordLabel="Months" OnFirstPage="OnFirstPage"
                                    OnLastPage="OnLastPage" OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:ExpandingDataGrid ID="dataGrid" runat="server" AutoGenerateColumns="False" ShowFooter="True"
                                    KeyColumnHeaderText="SortOrder" CollapseText="<img border=no src=../Images/CollapseButton.gif>"
                                    ExpandText="<img border=no src=../Images/ExpandButton.gif>" CssClass="ExpandingGrid"
                                    Width="100%" OnItemCommand="OnItemCommand" OnItemDataBound="OnItemDataBound"
                                    OnItemExpanded="OnItemExpanded">
                                    <AlternatingItemStyle CssClass="ExpandingGridAltItem" />
                                    <ItemStyle CssClass="ExpandingGridItem" HorizontalAlign="Right" />
                                    <HeaderStyle CssClass="ExpandingGridHeader" />
                                    <FooterStyle CssClass="ExpandingGridFooter" />
                                    <Columns>
                                        <asp:BoundColumn visible="False" HeaderText="CategoryID" DataField="CategoryID" />
                                        <asp:BoundColumn visible="False" HeaderText="SortOrder" DataField="SortOrder" />
                                        <asp:BoundColumn visible="True" HeaderText="Category" DataField="CategoryName">
                                            <itemstyle horizontalalign="Left" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn visible="True" HeaderText="Total" DataField="TotalExpenseAmount" />
                                    </Columns>
                                </cc2:ExpandingDataGrid>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <cc2:PostbackGuard ID="postbackGuard" runat="server" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
